/*
 * @Author: LAPTOP-STS5K12N\icey 2237665219@qq.com
 * @Date: 2025-01-26 22:00:39
 * @LastEditors: LAPTOP-STS5K12N\icey 2237665219@qq.com
 * @LastEditTime: 2025-01-28 22:31:37
 * @FilePath: \OLED\csrc\ui_manage.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#ifndef _BSP_H
#define _BSP_H

/*include************************************************ */
#include "main.h"
#include "stdbool.h"
/* Public functions ---------------------------------------------------------*/



/*
    @brief AHT10 结构体
*/
typedef struct __AHT10_t
{
    float temperature;
    float humidity;
} AHT10_t;

/*
    @brief 初始化 AHT10
*/
uint8_t AHT10_Init(void);

/*
    @brief 触发 AHT10 测量
*/
uint8_t AHT10_TriggerMeasurement(void);

/*
    @brief 读取 AHT10 数据
*/
uint8_t AHT10_ReadData(float *temperature, float *humidity);

/*
    @brief 获取 AHT10 结构体
*/
AHT10_t *Get_AHT10_Vars(void);


#endif